// pages/myApplicationDetail/myApplicationDetail.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    thumbnail:'',
    transferTime:'',
    address:'',
    company:'',
    createTime:'',
    dept:'',
    email:'',
    industry:'',
    name:'',
    phone:'',
    scene:'',
    sta:''
  },
 

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({
      thumbnail:options.thumbnail,
      transferTime:options.transferTime,
      address:options.address,
      company:options.company,
      createTime:options.createTime,
      dept:options.dept,
      email:options.email,
      industry:options.industry,
      name:options.name,
      phone:options.phone,
      scene:options.scene,
      sta:options.sta
    })
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    //当前页面
    let pages = getCurrentPages();
    
    //上一页面
    let prevPage = pages[pages.length - 2];
    
    //将数值信息赋值给上一页面cityItem变量
    prevPage.setData({
      sta: JSON.parse(this.data.sta)
    });
  },

})